package etec.foxsoft.telas;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JMenuBar;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import java.awt.Font;
import javax.swing.SwingConstants;
import javax.swing.JSeparator;
import javax.swing.JTextField;
import javax.swing.JTable;
import javax.swing.JButton;
import javax.swing.border.SoftBevelBorder;
import javax.swing.border.BevelBorder;
import javax.swing.table.DefaultTableModel;
import javax.swing.JScrollBar;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JScrollPane;

public class Receber extends JFrame {

	private JPanel contentPane;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;
	private JTextField textField_4;
	private JTextField textField_5;
	private JTextField textField_6;
	private JTextField textField_7;
	private JTextField textField_8;
	private JTextField textField_9;
	private JTextField textField_10;
	private JTable table;
	private JTextField textField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Receber frame = new Receber();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Receber() {
		setResizable(false);
		setTitle("FoxSoft1.0V");
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 880, 620);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel label = new JLabel("");
		label.setIcon(new ImageIcon(Receber.class.getResource("/Imagens/Logo_Paris.png")));
		label.setBounds(10, 0, 232, 99);
		contentPane.add(label);
		
		JLabel lblContasReceber = new JLabel("Contas \u00E0 Receber");
		lblContasReceber.setHorizontalAlignment(SwingConstants.CENTER);
		lblContasReceber.setFont(new Font("Tahoma", Font.PLAIN, 20));
		lblContasReceber.setBounds(310, 89, 243, 25);
		contentPane.add(lblContasReceber);
		
		JSeparator separator = new JSeparator();
		separator.setBounds(518, 102, 335, 14);
		contentPane.add(separator);
		
		JSeparator separator_1 = new JSeparator();
		separator_1.setBounds(10, 102, 335, 14);
		contentPane.add(separator_1);
		
		textField_1 = new JTextField();
		textField_1.setColumns(10);
		textField_1.setBounds(150, 171, 149, 20);
		contentPane.add(textField_1);
		
		textField_2 = new JTextField();
		textField_2.setColumns(10);
		textField_2.setBounds(150, 141, 149, 20);
		contentPane.add(textField_2);
		
		textField_3 = new JTextField();
		textField_3.setColumns(10);
		textField_3.setBounds(457, 201, 149, 20);
		contentPane.add(textField_3);
		
		textField_4 = new JTextField();
		textField_4.setColumns(10);
		textField_4.setBounds(457, 141, 149, 20);
		contentPane.add(textField_4);
		
		textField_5 = new JTextField();
		textField_5.setColumns(10);
		textField_5.setBounds(457, 171, 149, 20);
		contentPane.add(textField_5);
		
		JLabel label_2 = new JLabel("Quantidade de Parcelas");
		label_2.setFont(new Font("Tahoma", Font.PLAIN, 12));
		label_2.setBounds(11, 203, 129, 14);
		contentPane.add(label_2);
		
		JLabel label_3 = new JLabel("Valor das Parcelas");
		label_3.setFont(new Font("Tahoma", Font.PLAIN, 12));
		label_3.setBounds(11, 233, 102, 14);
		contentPane.add(label_3);
		
		JLabel label_4 = new JLabel("Primeira Parcela");
		label_4.setFont(new Font("Tahoma", Font.PLAIN, 12));
		label_4.setBounds(360, 233, 102, 14);
		contentPane.add(label_4);
		
		JLabel lblObservaes = new JLabel("Observa\u00E7\u00F5es");
		lblObservaes.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblObservaes.setBounds(651, 143, 74, 14);
		contentPane.add(lblObservaes);
		
		JLabel lblTotal = new JLabel("Total");
		lblTotal.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblTotal.setBounds(10, 263, 104, 14);
		contentPane.add(lblTotal);
		
		textField_6 = new JTextField();
		textField_6.setColumns(10);
		textField_6.setBounds(150, 261, 149, 20);
		contentPane.add(textField_6);
		
		textField_7 = new JTextField();
		textField_7.setColumns(10);
		textField_7.setBounds(652, 172, 201, 109);
		contentPane.add(textField_7);
		
		textField_8 = new JTextField();
		textField_8.setColumns(10);
		textField_8.setBounds(457, 231, 149, 20);
		contentPane.add(textField_8);
		
		textField_9 = new JTextField();
		textField_9.setColumns(10);
		textField_9.setBounds(150, 231, 149, 20);
		contentPane.add(textField_9);
		
		textField_10 = new JTextField();
		textField_10.setColumns(10);
		textField_10.setBounds(150, 201, 149, 20);
		contentPane.add(textField_10);
		
		JLabel label_10 = new JLabel("CPF");
		label_10.setFont(new Font("Tahoma", Font.PLAIN, 12));
		label_10.setBounds(360, 143, 23, 14);
		contentPane.add(label_10);
		
		JLabel label_11 = new JLabel("Nome");
		label_11.setFont(new Font("Tahoma", Font.PLAIN, 12));
		label_11.setBounds(10, 143, 40, 14);
		contentPane.add(label_11);
		
		JLabel label_12 = new JLabel("CNPJ");
		label_12.setFont(new Font("Tahoma", Font.PLAIN, 12));
		label_12.setBounds(360, 173, 33, 14);
		contentPane.add(label_12);
		
		JLabel label_13 = new JLabel("Raz\u00E3o Social");
		label_13.setFont(new Font("Tahoma", Font.PLAIN, 12));
		label_13.setBounds(10, 173, 74, 14);
		contentPane.add(label_13);
		
		JLabel lblEmisso = new JLabel("Emiss\u00E3o");
		lblEmisso.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblEmisso.setBounds(360, 203, 53, 14);
		contentPane.add(lblEmisso);
		
		JLabel label_1 = new JLabel("Pagamentos Cadastrados");
		label_1.setHorizontalAlignment(SwingConstants.CENTER);
		label_1.setFont(new Font("Tahoma", Font.PLAIN, 20));
		label_1.setBounds(310, 288, 243, 25);
		contentPane.add(label_1);
		
		JSeparator separator_2 = new JSeparator();
		separator_2.setBounds(10, 299, 299, 14);
		contentPane.add(separator_2);
		
		JSeparator separator_3 = new JSeparator();
		separator_3.setBounds(554, 299, 299, 14);
		contentPane.add(separator_3);
		
		JButton button = new JButton("OK");
		button.setIcon(new ImageIcon(Receber.class.getResource("/Imagens/Ok.png")));
		button.setBounds(610, 554, 115, 23);
		contentPane.add(button);
		
		JButton button_1 = new JButton("Fechar");
		button_1.setIcon(new ImageIcon(Receber.class.getResource("/Imagens/Fechar.png")));
		button_1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				setVisible(false);
				
				
			}//Deixar Janela Oculta
		});
		button_1.setBounds(738, 554, 115, 23);
		contentPane.add(button_1);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(10, 324, 843, 219);
		contentPane.add(scrollPane);
		
		table = new JTable();
		table.setModel(new DefaultTableModel(
			new Object[][] {
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
			},
			new String[] {
				"C\u00F3d", "Cliente", "Valor", "Data"
			}
		));
		scrollPane.setViewportView(table);
		
		JButton btnPrximo = new JButton("Cliente");
		btnPrximo.setBounds(10, 110, 89, 23);
		contentPane.add(btnPrximo);
		
		JLabel label_5 = new JLabel("N\u00BA do Contrato");
		label_5.setFont(new Font("Tahoma", Font.PLAIN, 12));
		label_5.setBounds(360, 263, 96, 14);
		contentPane.add(label_5);
		
		textField = new JTextField();
		textField.setEnabled(false);
		textField.setColumns(10);
		textField.setBounds(457, 263, 149, 20);
		contentPane.add(textField);
		
		JButton button_2 = new JButton("");
		button_2.setIcon(new ImageIcon(Receber.class.getResource("/Imagens/Ajuda.png")));
		button_2.setBounds(649, 11, 80, 80);
		contentPane.add(button_2);
		
		JButton button_3 = new JButton("");
		button_3.setIcon(new ImageIcon(Receber.class.getResource("/Imagens/Sobre.png")));
		button_3.setBounds(773, 11, 80, 80);
		contentPane.add(button_3);
	}
}
